/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author Turk
 */
public class SimpleDateCalendar {

    DateFormat dateformat = new SimpleDateFormat("yyyy/MM/dd");
    Calendar cal = Calendar.getInstance();

    public Date currentDate() throws ParseException {
        return this.dateformat.parse(dateformat.format(cal.getTime()));
    }

    public void getCurrentTime() {
        System.err.println(dateformat.format(cal.getTime()));
    }
}
